﻿using UnityEngine;
using System.Collections;

public class LevelEnd : MonoBehaviour {

	public Level _level;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerEnter2D(Collider2D other) {
		other.gameObject.transform.position = _level._nextLevel._levelStart.gameObject.transform.position;
	}
	
	void OnCollisionStay2D(Collision2D other) {

	}

	void OnTriggerExit2D(Collider2D other) {
	}

}